import * as index from '@/api/index.js'
export default {
	data() {
		return {
			form: {
				mobile: '',
				car_number: ''
			}
		}
	},

	onShow() {

	},
	onLoad(option) {

	},

	methods: {
		submit() {
			// let that = this
			index.warrantySearch(this.form).then(res => {
				console.log(res);
				// this.$tools.navigate('/pages/home/warrantyInfo/index?mobile=' + this.form.mobile + '&type=' + this.type)
				if(res.data){
					this.$tools.navigate('/pages/home/warrantyInfo/index?mobile=' + this.form.mobile + '&car_number=' + this.form.car_number)
				}
			})
		}
	}
}